group
Type
command
Summary
Creates a new group and adds the selected objects to it.
Syntax
group [<objectList>]
Description
Use the group command after selecting objects to make a group out of them.
If you specify an objectList, the specified objects are placed in the new group. Otherwise, the selected object or objects are placed in the group.
As with any group on a card, you can use the place command to make the newly-created group appear on other cards.
To refer to the newly-created group, use the it variable immediately after the 'group' command :
group button \"Yes\" and button \"No\"
set the name of it to \"Do It\"
Parameters
Name | Type | Description |
---|---|---|
objectList | A list of object references, separated by the word "and". |
Examples
group
if the number of lines of the selectedObject > 1 then group
group field "Help" and image "Help Icon" and graphic "Outline"
Related
property: selected, relayerGroupedControls, layer
command: group, start editing
function: selectedObject
glossary: object, command, keyword, select
keyword: last
message: newGroup
object: card
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile